<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
        <meta name="author" content="Coderthemes">

        <link rel="shortcut icon" href="assets/images/favicon_1.ico">

        <title>Ubold - Responsive Admin Dashboard Template</title>

        <!-- Codemirror css -->
        <link href="../plugins/codemirror/css/codemirror.css" rel="stylesheet" type="text/css" />
        <link href="../plugins/codemirror/css/ambiance.css" rel="stylesheet" type="text/css" />

        <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/style.css" rel="stylesheet" type="text/css" />

        <script src="assets/js/modernizr.min.js"></script>


    </head>


    <body class="fixed-left" id="do-nicescrol">

        <!-- Page-Title -->
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right m-t-15">
                    <button type="button" class="btn btn-default dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings</button>
                    <div class="dropdown-menu dropdown-menu-right" aria-labelledby="btnGroupDrop1">
                        <a class="dropdown-item" href="form-code-editor.html#">Dropdown One</a>
                        <a class="dropdown-item" href="form-code-editor.html#">Dropdown Two</a>
                        <a class="dropdown-item" href="form-code-editor.html#">Dropdown Three</a>
                        <a class="dropdown-item" href="form-code-editor.html#">Dropdown Four</a>
                    </div>
                </div>

                <h4 class="page-title">代码编辑器</h4>
                 <p class="text-muted page-title-alt">欢迎来到Ubold管理面板 !</p>

            </div>
        </div>


        <div class="row">

            <div class="col-sm-12">
                <div class="card m-b-20">
                    <div class="p-20">
                        <h4 class="font-18 mt-0">XML/HTML 模式</h4>
                        <small>The XML mode supports two configuration parameters <code>htmlMode</code> and <code>alignCDATA</code>. To learn more visit <a target="_blank" href="http://codemirror.net/mode/xml/index.html">here</a>. To view more languages visit <a href="http://codemirror.net/mode/index.html" target="_blank">here</a></small>
                    </div>
                    <div class="panel-body p-0">

					<textarea id="code" name="code">
					&lt;html&gt;
					  &lt;!-- this is a comment --&gt;
					  &lt;head&gt;
					    &lt;title&gt;HTML Example&lt;/title&gt;
					  &lt;/head&gt;
					  &lt;body&gt;
					    The indentation tries to be &lt;em&gt;somewhat &amp;quot;do what
					    I mean&amp;quot;&lt;/em&gt;... but might not match your style.
					  &lt;/body&gt;
					&lt;/html&gt;
					</textarea>


                    </div>
                </div>
            </div>

        </div> <!-- End row -->


        <div class="row">

            <div class="col-sm-12">
                <div class="card m-b-20">
                    <div class="p-20">
                        <h4 class="font-18 mt-0">Code Editor Theme</h4>
                        <small class="text-muted">The code editor comes with different themes such as below. You can view more theme demos from the CodeMirror site by going here</small>
                    </div>
                    <div class="panel-body p-0 code-edit-wrap">
					<textarea id="code2" name="code">
					function findSequence(goal) {
					  function find(start, history) {
					    if (start == goal)
					      return history;
					    else if (start > goal)
					      return null;
					    else
					      return find(start + 5, "(" + history + " + 5)") ||
					             find(start * 3, "(" + history + " * 3)");
					  }
					  return find(1, "1");
					}
					</textarea>		

                    </div>
                </div>
            </div>

        </div> <!-- End row -->



        <div class="row">

            <div class="col-sm-12">
                <div class="card m-b-20">
                    <div class="p-20">
                        <h4 class="mt-0 font-18">AutoFormatting Of Code</h4>
                        <small>Select a piece of code and click one of the links below to apply automatic formatting to the selected text or comment/uncomment the selected text. Note that the formatting behavior depends on the current block's mode. </small>
                        <div class="m-t-10"></div>
                        <button class="btn btn-primary btn-sm m-r-5 autoformat">Autoformat Selected</button>
                        <button class="btn btn-primary btn-sm m-r-5 commentbtn">Comment Selected</button>
                        <button class="btn btn-primary btn-sm uncomment">Uncommment Selected</button>
                    </div><!-- panel-heading -->
                    <div class="panel-body p-0 code-edit-wrap">
<textarea id="code3" name="code"><script> function (s,e){ for(var i=0; i < 1; i++) test("test();a=1");} </script>
<script>
function test(c){  for (var i = 0; i < 10; i++){              process("a.b();c = null;", 300);}
}
</script>
<table><tr><td>test 1</td></tr><tr><td>test 2</td></tr></table>
<script> function test() { return 1;} </script>
<style> .test { font-size: medium; font-family: monospace; }
</style></textarea>
                    </div><!-- panel-body -->
                </div><!-- panel -->
            </div>


        </div> <!-- End row -->

        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/popper.min.js"></script><!-- Popper for Bootstrap -->
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/detect.js"></script>
        <script src="assets/js/fastclick.js"></script>
        <script src="assets/js/jquery.slimscroll.js"></script>
        <script src="assets/js/jquery.blockUI.js"></script>
        <script src="assets/js/waves.js"></script>
        <script src="assets/js/wow.min.js"></script>
        <script src="assets/js/jquery.nicescroll.js"></script>
        <script src="assets/js/jquery.scrollTo.min.js"></script>

        <!-- Code mirror js -->
        <script src="../plugins/codemirror/js/codemirror.js"></script>
        <script src="../plugins/codemirror/js/formatting.js"></script>
        <script src="../plugins/codemirror/js/xml.js"></script>
        <script src="assets/pages/jquery.codemirror.init.js"></script>

        <script src="assets/js/jquery.core.js"></script>
        <script src="assets/js/jquery.app.js"></script>

    </body>
</html>